﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using OrbitOne.Elmah.Logic;

namespace OrbitOne.Elmah.Presenter
{
    public class TopApplications : UserControl
    {
        #region Controls
        protected Repeater rptApplications; 
        #endregion

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            var service = new OrbitOneElmahErrorService();
            rptApplications.DataSource = service.GetTopApplications();
            rptApplications.DataBind();
        }
    }
}
